<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 空白页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="__STATIC__/layout/favicon.ico">
    <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
</head>

<body style="color:#333;padding:3px;">
<!-- 标题 -->
<div class="page-heade">
    <h2 class="title_color text-center">所属渠道优惠政策管理</h2>
</div>
<!-- 标题 -->
<div class="form-inline">
    <form action="">
        <table class="row-margin-top tab-content table-bordered table" border="1">
            <tr>
                <td class="text-right"><label for="" class="form-label">编号：</label></td>
                <td><input type="text" class="form-control" name="sn" value="{$sn}"></td>
                <td class="text-right"><label for="">主题：</label></td>
                <td><input type="text" class="form-control" name="title" value="{$title}"></td>
                <td class="text-right"><label for="">是否撤销：</label></td>
                <td>
                    <select name="is_revoke" id="" class="form-control">
                        <option value="0" {if $is_revoke=='0'}selected{/if}>已撤销</option>
                        <option value="1" {if $is_revoke=='1'}selected{/if}>未撤销</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td class="text-right"><label for="" class="form-label">申请时间：</label>
                </td>
                <td colspan="5">
                    <div class="form-group">
                        <input type="text" id="start" class="form-control layer-date "
                               style="height: 22px;display: inline-block;" name="start" value="{$start}">
                    </div>
                    <div class="form-group">
                        至
                    </div>
                    <div class="form-group">
                        <input type="text" class="form-control layer-date" style="height: 22px;display: inline-block;"
                               id="end" name="end" value="{$end}">
                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="6" class="text-center">
                    <button class="btn btn-info query">查询</button>
                    <button class="btn btn-info emptyIf" type="button">清空查询条件</button>
                </td>
            </tr>
        </table>

        <table class="table table-striped row-margin-top table-bordered table-hover text-center bud_hei">
            <tr class="info text-center">
                <th class="text-center">NO.</th>
                <th class="text-center">编号</th>
                <th class="text-center" style="min-width: 240px;width: 240px">主题</th>
                <th class="text-center">状态</th>
                <th class="text-center">是否撤销</th>
                <th class="text-center">申请人</th>
                <th class="text-center">申请时间</th>
                <th class="text-center">操作</th>
            </tr>
            {volist name="data" id="row" key="k"}
            <tr>
                <td>{$k}</td>
                <td class="text-center"><a href="{:url('qpview')}?id={$row.id}" class="J_menuItem">{$row.sn}</a></td>
                <td class="text-left">{$row.title}</td>
                <td>{$row.statustype}</td>
                <td>{if $row.is_revoke==1}已撤销{else}未撤销{/if}</td>
                <td>{$row.sqr}</td>
                <td>{$row.sqtime}</td>
                <td>
                    {if $row.is_revoke!=1&&$row.status==7}
                    <a href="{:url('revoke',['id'=>$row.id])}">撤销</a>
                    {/if}
                    {if $row.status!=1} <a href="{:url('Workflowdb/workflowchart',['id'=>$row.myId])}" class="J_menuItem" title="查看流程图">查看流程图</a>{/if}
                </td>
            </tr>
            {/volist}
        </table>
    </form>
</div>
<!-- 全局js -->
<script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
<script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
<!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
<script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<!--统计代码，可删除-->
<script src="__STATIC__/layout/js/plugins/layer/laydate/laydate.js"></script>
<script src="__STATIC__/layout/js/contabs_sub.js"></script>
<script>
    
    $('.emptyIf').on('click',function () {
        $(this).closest('form').find('input').val('')
        $(this).closest('form').find('select').val('')
    })

    //日期范围限制
    var start = {
        elem: '#start',
        format: 'YYYY-MM-DD',
//        min: laydate.now(), //设定最小日期为当前日期
        max: '2099-06-16 23:59:59', //最大日期
        istime: true,
        istoday: false,
        choose: function (datas) {
            end.min = datas; //开始日选好后，重置结束日的最小日期
            end.start = datas //将结束日的初始值设定为开始日
        }
    };
    var end = {
        elem: '#end',
        format: 'YYYY-MM-DD',
//        min: laydate.now(),
        max: '2099-06-16 23:59:59',
        istime: true,
        istoday: false,
        choose: function (datas) {
            start.max = datas; //结束日选好后，重置开始日的最大日期
        }
    };
    laydate(start);
    laydate(end);
</script>
</body>

</html>
